import axios from 'axios'

export const AttachemenInfoService = class AttachemenInfoService {
    static attachemenInfoService = null
    requestUrl = 'http://localhost/attachemenInfos'

    static getInstance() {
        if (this.attachemenInfoService == null) {
            this.attachemenInfoService = new AttachemenInfoService()
        }
        return this.attachemenInfoService
    }

    /**
     * 根据计划id查询明细
     * @param ids
     */
    getById(ids) {
        return axios.get(`${this.requestUrl}/${ids}`)
    }
}
